<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style type="text/css">
        .box {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
        }
    </style>
</head>
<body>
<div class="box">
    <div>
        <div><img src="timg.jpeg" style="width: 300px;height: 200px"/></div>
        <div><img src="timg2.jpeg" style="width: 300px;height: 200px"/></div>
    </div>
    <div>
        <div><img src="timg3.jpeg" style="width: 300px;height: 200px"/></div>
        <div><img src="timg4.jpeg" style="width: 300px;height: 200px"/></div>
    </div>
</div>
</body>
<script type="javascript">
    function Event(obj) {
        obj.obj.listener("click", function () {
            alert()
        })
    }
</script>
</html>